package cn.itsource.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Teacher {
    private Long id;
    //对应属性名与excel列， width宽度，orderNum顺序
    @Excel(name = "姓名",width = 20,orderNum = "0")
    private String name;
    @Excel(name = "年龄",width = 20)
    private Integer age;
    //replace替换
    @Excel(name = "性别",replace = { "男_1", "女_0" },orderNum = "1")
    private String sex;
    //type导出的类型
    @Excel(name = "职位",width = 20)
    private String position;
    @Excel(name = "学科",width = 20)
    private String subject;

}
